package ar.edu.ufasta.presupuestos.servicios.web.netpacks;

import java.io.Serializable;

public abstract class RequestPack implements Serializable {
	protected int protocol;
	protected int systemCode;
	protected int operationCode;
	protected String trama="";
	
	public RequestPack(){
		
	}

	/**
	 * @return the protocol
	 */
	public int getProtocol() {
		return protocol;
	}

	/**
	 * @param protocol the protocol to set
	 */
	public void setProtocol(int protocol) {
		this.protocol = protocol;
	}

	/**
	 * @return the systemCode
	 */
	public int getSystemCode() {
		return systemCode;
	}

	/**
	 * @param systemCode the systemCode to set
	 */
	public void setSystemCode(int systemCode) {
		this.systemCode = systemCode;
	}

	/**
	 * @return the operationCode
	 */
	public int getOperationCode() {
		return operationCode;
	}

	/**
	 * @param operationCode the operationCode to set
	 */
	public void setOperationCode(int operationCode) {
		this.operationCode = operationCode;
	}
	
	public abstract void codificarTrama();
	
	public abstract void decodificarTrama();

	/**
	 * @return the trama
	 */
	public String getTrama() {
		return trama;
	}

	/**
	 * @param trama the trama to set
	 */
	public void setTrama(String trama) {
		this.trama = trama;
	}
}
